package young.Util;


import javax.swing.*;
import java.awt.*;

public class Util2 {
    /**
     * 图片工具
     */
    public static class Util {
        public static Image getImage(String path) {
            return new ImageIcon(Util.class.getResource(path)).getImage();
        }

        public static ImageIcon getImageIcon(String path) {
            return new ImageIcon(Util.class.getResource(path));
        }
    }
}
